@extends('www/zc-admin/layout')
@section('content')

    <div class="main-container">

        @include("/www/zc-admin/left-nav",['typeId'=>$typeId,'nav'=>'total'])

        <div class="main-content">
            <div class="content-anv">
                <span>首页</span>
                <span> ></span>
                <span>总凑总览</span>
                <span> ></span>
                <span>子订单</span>

                <ul>
                    <li onclick="history.back();" style="">返回</li>
                </ul>
            </div>

            <table class="table">
                <tr>
                    <th>#</th>
                    <th>ID</th>
                    <th>标题</th>
                    <th>微信号</th>
                    <th>姓名</th>
                    <th>电话</th>
                    <th>筹款金额</th>
                    <th>已筹金额</th>
                    <th>支持人数</th>
                    <th>开始时间</th>
                    <th>结束时间</th>
                    <th>操作</th>
                </tr>

                @foreach($orders as $k=>$order)
                    <tr>
                        <td>{{$k+1}}</td>
                        <td>{{$order->id}}</td>
                        <td>{{$order->title}}</td>
                        <td>{{$order->wx_name}}</td>
                        <td>{{$order->real_name}}</td>
                        <td>{{$order->mobile}}</td>
                        <td>{{$order->money}}</td>
                        <td>{{$order->raised_money}}</td>
                        <td>{{$order->supports_num}}</td>


                        <td>{{$order->begin_time}}</td>
                        <td>{{$order->end_time}}</td>
                        <td>
                            @if($order->hand_status == 0)
                                <a href="/www/zhongchouAdmin/hand_order?orderId={{$order->id}}" class="btn btn-danger" onclick="return confirm('确定？');">确定
                                </a>
                            @else
                                <p>已处理</p>
                            @endif
                        </td>
                    </tr>
                @endforeach
            </table>
            <div class="h40"></div>
        </div>
    </div>



@endsection